import Vue from 'vue'
import Router from 'vue-router'
// import Hello from '@/views/Hello'
import MerchantHome from '@/views/MerchantHome'
import StaffHome from '@/views/StaffHome'
import UserSetting from '@/views/UserSetting'
import ChangePassword from '@/views/ChangePassword'
import ChangePhone from '@/views/ChangePhone'
import ScanCode from '@/views/ScanCode'
import Record from '@/views/Record'
import OrderDetail from '@/views/OrderDetails'
import StaffRecord from '@/views/StaffRecord'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MerchantHome',
      component: MerchantHome
    },
    {
      path: '/merchantHome',
      name: 'MerchantHome',
      component: MerchantHome
    },
    {
      path: '/staffHome',
      name: 'StaffHome',
      component: StaffHome
    },
    {
      path: '/userSetting',
      name: 'UserSetting',
      component: UserSetting
    },
    {
      path: '/changePassword',
      name: 'ChangePassword',
      component: ChangePassword
    },
    {
      path: '/changePhone',
      name: 'ChangePhone',
      component: ChangePhone
    },{
      path: '/scanCode',
      name: 'ScanCode',
      component: ScanCode
    },{
      path: '/record',
      name: 'Record',
      component: Record
    },
    {
      path: '/orderDetail',
      name: 'OrderDetail',
      component: OrderDetail
    },
    {
      path: '/staffRecord',
      name: 'StaffRecord',
      component: StaffRecord
    },

  ]
})
